﻿using UnityEngine;

public class NodeMoveCommand : ICommand
{

    private readonly Vector3 offset;
    private Transform Object;

    public NodeMoveCommand(Transform obj, Vector3 offset)
    {
        this.Object = obj;
        this.offset = offset;
    }

    public void Execute()
    {
        //this.Object.transform.position += this.offset;
    }

    public void ReDo()
    {
        this.Object.transform.position += this.offset;
    }

    public void UnDo()
    {
        this.Object.transform.position -= this.offset;
    }
}
